package com.lion.ball.app.models.params.order;


/**
 * @author Chris Chan
 * Create on 2025-09-30 22:44
 * Use for: 商品属性关联 排序参数
 * Explain:
 * 
 */
public class TradeGoodsAttrOrderParam {
    // ID
    private int id;
    // 商品编码
    private int code;
    // 属性项
    private int itemName;
    // 属性值
    private int value;
    // 属性图标索引
    private int iconIndex;

    // 无参构造方法
    public TradeGoodsAttrOrderParam() {
    }

    // 全参数构造方法
    public TradeGoodsAttrOrderParam(int id, int code, int itemName, int value, int iconIndex) {
        this.id = id;
        this.code = code;
        this.itemName = itemName;
        this.value = value;
        this.iconIndex = iconIndex;
    }

    // 全参数create生成器
    public static TradeGoodsAttrOrderParam create(int id, int code, int itemName, int value, int iconIndex) {
        return new TradeGoodsAttrOrderParam(id, code, itemName, value, iconIndex);
    }

    // 全参数of生成器
    public static TradeGoodsAttrOrderParam of(int id, int code, int itemName, int value, int iconIndex) {
        return new TradeGoodsAttrOrderParam(id, code, itemName, value, iconIndex);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public TradeGoodsAttrOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getCode() {
        return code;
    }

    public TradeGoodsAttrOrderParam setCode(int code) {
        this.code = code;
        return this;
    }

    public int getItemName() {
        return itemName;
    }

    public TradeGoodsAttrOrderParam setItemName(int itemName) {
        this.itemName = itemName;
        return this;
    }

    public int getValue() {
        return value;
    }

    public TradeGoodsAttrOrderParam setValue(int value) {
        this.value = value;
        return this;
    }

    public int getIconIndex() {
        return iconIndex;
    }

    public TradeGoodsAttrOrderParam setIconIndex(int iconIndex) {
        this.iconIndex = iconIndex;
        return this;
    }

    // endregion Getter和Setter方法
}
